import request from '@/utils/request'

// 查询应急演练附件列表
export function listDrillattach(query) {
  return request({
    url: '/dri/drillattach/list',
    method: 'get',
    params: query
  })
}

// 查询应急演练附件详细
export function getDrillattach(driattachid) {
  return request({
    url: '/dri/drillattach/' + driattachid,
    method: 'get'
  })
}

// 新增应急演练附件
export function addDrillattach(data) {
  return request({
    url: '/dri/drillattach',
    method: 'post',
    data: data
  })
}

// 修改应急演练附件
export function updateDrillattach(data) {
  return request({
    url: '/dri/drillattach',
    method: 'put',
    data: data
  })
}

// 删除应急演练附件
export function delDrillattach(driattachid) {
  return request({
    url: '/dri/drillattach/' + driattachid,
    method: 'delete'
  })
}
